package com.persondemo.videoappliction.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.persondemo.videoappliction.R;

import com.persondemo.videoappliction.utils.ImageLoaderUtil;

import java.util.List;

/**
 * Created by Administrator on 2018/4/23.
 */

public class DetilsImgAdapter extends BaseQuickAdapter<String,BaseViewHolder> {
    private Context context;
private int mtype;
    public DetilsImgAdapter(Context context, @Nullable List<String> data,int type) {
        super(R.layout.item_imgs, data);
        this.context = context;
        mtype=type;
    }


    @Override
    protected void convert(BaseViewHolder helper, String item) {
        if (mtype == 1) {
            ImageLoaderUtil.LoadImage(context,item,helper.getView(R.id.detils_item_img));
        }else {
            ImageLoaderUtil.LoadImagelarge02(context,item,helper.getView(R.id.detils_item_img));
        }


    }
}
